package com.gientech.dao;


import com.gientech.entity.BookEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 关系型数据库mysql Repository
 *
 * @author hero
 * 
 */
@Repository("bookRepository")
public interface BookRepository extends JpaRepository<BookEntity, String> {
    List<BookEntity> findBookByAuthorOrTitle(String author,String title);
}